import 'package:flutter/material.dart';
import 'package:hi_base/log.dart';

///页面状态异常管理

abstract class HState<T extends StatefulWidget> extends State<T> {
  @override
  void setState(fn) {
    if (mounted) {
      super.setState(fn);
    } else {
      hyLog('HState:页面已销毁，本次setState不执行：${toString()}', StackTrace.current);
    }
  }
}
